package com.pactera.mavenweb.service;

import java.util.List;

import com.pactera.mavenweb.entity.GroupRole;

/**
 * GroupRoleService
 * @author SteveXIE
 *
 */
public interface GroupRoleService {
	/**
	 * 批量保存
	 * @param groupRole
	 * @return
	 */
	int saveGroupRoles(List<GroupRole> groupRoles);
	
	public GroupRole getGroupRole(String id);
	
	public List<GroupRole> getAllGroupRole();
	
	public List<GroupRole> getRolesFromGroupId(int groupId);
	
	public void addGroupRole(GroupRole groupRole);
	
	public boolean delGroupRole(int userId);
	
	public void updateGroupRole(GroupRole groupRole);
}